home *** CD-ROM | disk | FTP | other *** search
- Path: mail2news.demon.co.uk!genesis.demon.co.uk
- From: Lawrence Kirby <fred@genesis.demon.co.uk>
- Newsgroups: comp.lang.c
- Subject: Re: need for function prototypes
- Date: Thu, 29 Feb 96 00:16:13 GMT
- Organization: none
- Message-ID: <825552973snz@genesis.demon.co.uk>
- References: <4gutho$o1a@mn5.swip.net> <TANMOY.96Feb27115933@qcd.lanl.gov>
- Reply-To: fred@genesis.demon.co.uk
- X-NNTP-Posting-Host: genesis.demon.co.uk
- X-Newsreader: Demon Internet Simple News v1.27
- X-Mail2News-Path: genesis.demon.co.uk
-
- In article <TANMOY.96Feb27115933@qcd.lanl.gov>
- tanmoy@qcd.lanl.gov "Tanmoy Bhattacharya" writes:
-
- >In article <4gutho$o1a@mn5.swip.net>
- >chris.rossall@mailbox.swipnet.se (Chris Rossall) writes:
- >
- >CR: Hello I am having trouble understanding why I should use function
- >CR: prototypes. I mean,if the function is defined before it is used,the
- >CR: compiler should have enough information about the parameters to
- >CR: produce correct code anyway.
- >
- >Point 1:
- >
- >The calling sequence of a function with a prototype is often different
- >from the type it seems to be declared with. Thus in
-
- That's backwards - a prototyped declaration states the types of the
- arguments passed (other than ones corresponding to ...). I assume that
- where you wrote 'with' you meant 'without'.
-
- --
- -----------------------------------------
- Lawrence Kirby | fred@genesis.demon.co.uk
- Wilts, England | 70734.126@compuserve.com
- -----------------------------------------
-